#define _CRT_SECURE_NO_WARNINGS

#include"stack.h"


void test01()
{
	Stack st;
	Stackinit(&st);
	Stackpush(&st, 1);
	Stackpush(&st, 2);
	Stackpush(&st, 3);
	Stackpush(&st, 4);
	Stackpush(&st, 5);
	Stackpush(&st, 6);
	/*Stackpop(&st);
	Stackpop(&st);
	Stackpop(&st);*/
	
	printf("%d\n", stacksize(&st));
	while (!Stackempty(&st))
	{
		int ret = stacktop(&st);
		printf("%d ", ret);
		Stackpop(&st);

	}
	stackdestroy(&st);

}



int main()
{
	test01();
	return 0;
}
